package com.gsnd.briuppts.entity;

import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName manager_fence_house
 */
@Data
public class ManagerFenceHouse implements Serializable {
    /**
     * 栏舍id
     */
    private String fhId;

    /**
     * 栏舍名称
     */
    private String fhName;

    /**
     * 栏舍描述
     */
    private String fhDesc;

    /**
     * 栏舍创建时间
     */
    private String fhTime;

    /**
     * 删除状态，逻辑删除0存在1删除
     */
    private Integer fhDelete;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        ManagerFenceHouse other = (ManagerFenceHouse) that;
        return (this.getFhId() == null ? other.getFhId() == null : this.getFhId().equals(other.getFhId()))
            && (this.getFhName() == null ? other.getFhName() == null : this.getFhName().equals(other.getFhName()))
            && (this.getFhDesc() == null ? other.getFhDesc() == null : this.getFhDesc().equals(other.getFhDesc()))
            && (this.getFhTime() == null ? other.getFhTime() == null : this.getFhTime().equals(other.getFhTime()))
            && (this.getFhDelete() == null ? other.getFhDelete() == null : this.getFhDelete().equals(other.getFhDelete()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getFhId() == null) ? 0 : getFhId().hashCode());
        result = prime * result + ((getFhName() == null) ? 0 : getFhName().hashCode());
        result = prime * result + ((getFhDesc() == null) ? 0 : getFhDesc().hashCode());
        result = prime * result + ((getFhTime() == null) ? 0 : getFhTime().hashCode());
        result = prime * result + ((getFhDelete() == null) ? 0 : getFhDelete().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", fhId=").append(fhId);
        sb.append(", fhName=").append(fhName);
        sb.append(", fhDesc=").append(fhDesc);
        sb.append(", fhTime=").append(fhTime);
        sb.append(", fhDelete=").append(fhDelete);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}